/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prototype.communication;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.util.Properties;

/**
 *
 * @author Server
 */
public class ConnectionResource {

    private String hostname;
    private int portNo;

    public ConnectionResource() throws FileNotFoundException, IOException {
        
        hostname = "localhost";
        portNo = 55555;
    }

    public ConnectionResource(String hostname, int portNo) {
        this.hostname = hostname;
        this.portNo = portNo;
    }

    public String getHostname() {
        return hostname;
    }

    public int getPortNo() {
        return portNo;
    }

    public void setHostname(String hostname) {
        this.hostname = hostname;
    }

    public void setPortNo(int portNo) {
        this.portNo = portNo;
    }
}
